import request from '@/utils/request'

// 查询纸质信件邮寄信息列表
export function listDetails(query) {
  return request({
    url: '/system/details/list',
    method: 'get',
    params: query
  })
}

// 查询纸质信件邮寄信息详细
export function getDetails(shippingId) {
  return request({
    url: '/system/details/' + shippingId,
    method: 'get'
  })
}

// 新增纸质信件邮寄信息
export function addDetails(data) {
  return request({
    url: '/system/details',
    method: 'post',
    data: data
  })
}

// 修改纸质信件邮寄信息
export function updateDetails(data) {
  return request({
    url: '/system/details',
    method: 'put',
    data: data
  })
}

// 删除纸质信件邮寄信息
export function delDetails(shippingId) {
  return request({
    url: '/system/details/' + shippingId,
    method: 'delete'
  })
}
